package model

import "github.com/zeromicro/go-zero/core/stores/sqlx"

var _ AwRecommendNewsModel = (*customAwRecommendNewsModel)(nil)

type (
	// AwRecommendNewsModel is an interface to be customized, add more methods here,
	// and implement the added methods in customAwRecommendNewsModel.
	AwRecommendNewsModel interface {
		awRecommendNewsModel
		withSession(session sqlx.Session) AwRecommendNewsModel
	}

	customAwRecommendNewsModel struct {
		*defaultAwRecommendNewsModel
	}
)

// NewAwRecommendNewsModel returns a model for the database table.
func NewAwRecommendNewsModel(conn sqlx.SqlConn) AwRecommendNewsModel {
	return &customAwRecommendNewsModel{
		defaultAwRecommendNewsModel: newAwRecommendNewsModel(conn),
	}
}

func (m *customAwRecommendNewsModel) withSession(session sqlx.Session) AwRecommendNewsModel {
	return NewAwRecommendNewsModel(sqlx.NewSqlConnFromSession(session))
}
